package com.example.sh_crosses.game;

import android.net.Uri;
import android.os.Bundle;
import android.widget.VideoView;

import com.example.sh_crosses.R;
import com.example.sh_crosses.base.BaseActivity;

public class YxglAcitivty extends BaseActivity {
    private VideoView videoView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_yxgl);

        videoView = findViewById(R.id.video);
        String packageName = getPackageName();
        int resId = getResources().getIdentifier("yxgl", "raw", packageName);
        videoView.setVideoURI(Uri.parse("android.resource://" + packageName + "/" + resId));
        videoView.start();
    }

    @Override
    protected void onPause() {
        super.onPause();
        videoView.pause();
    }
}
